package com.cyx.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {
    @RequestMapping("/")
    public String index(){
        return "views/index";
    }

    @RequestMapping("/vip1/{id}")
    public String vip1(@PathVariable("id") String id){
        return "views/vip1/"+id;
    }

    @RequestMapping("/vip2/{id}")
    public String vip2(@PathVariable("id") String id){
        return "views/vip2/"+id;
    }

    @RequestMapping("/vip3/{id}")
    public String vip3(@PathVariable("id") String id){
        return "views/vip3/"+id;
    }
}
